package com.rency.mtds.manager.spi;

import com.rency.mtds.manager.spi.entity.DataSourceBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.rency.halo.framework.web.result.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: caiyu.ren
 * Created on 2019/9/3 9:58
 * @version: V1.0.0
 * @since JDK 11
 */
@Api(value = "数据源", tags = {"数据源"})
@FeignClient("MTDS")
@RequestMapping(value = "/mtds")
public interface DataSourceApi {

    @ApiOperation(value = "获取数据源", httpMethod = "GET")
    @GetMapping(value = "/{appId}")
    ApiResult<DataSourceBO> get(@PathVariable(name = "appId") String appId);
}
